GtkAboutDialog: Fix a parameter check
authorMatthias Clasen <mclasen@redhat.com>
Sat, 7 Jun 2014 14:47:33 +0000 (10:47 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 9 Jun 2014 17:30:51 +0000 (13:30 -0400)
When we expanded the GtkLicense enumeration in 3.12, we forgot
to update the limit check in gtk_about_dialog_set_license_type.
Caught by testing property notification for enum properties.

gtk/gtkaboutdialog.c

index c0e048cb8ad2990ce33bea65e8fe9951356d0808..81aeda1a326db71df8401b0c25f49fbda37c0a90 100644 (file)
@@ -2442,7 +2442,7 @@ gtk_about_dialog_set_license_type (GtkAboutDialog *about,
 
   g_return_if_fail (GTK_IS_ABOUT_DIALOG (about));
   g_return_if_fail (license_type >= GTK_LICENSE_UNKNOWN &&
-                    license_type <= GTK_LICENSE_ARTISTIC);
+                    license_type <= GTK_LICENSE_LGPL_3_0_ONLY);
 
   priv = about->priv;